
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML><HEAD><TITLE>Man page of XYMONPING</TITLE>
</HEAD><BODY>
<H1>XYMONPING</H1>
Section: User Commands  (1)<BR>Updated: Version 4.3.13:  7 Jan 2014<BR><A HREF="#index">Index</A>
<A HREF="../index.html">Return to Main Contents</A><HR>

<A NAME="lbAB">&nbsp;</A>
<H2>NAME</H2>

xymonping - Xymon ping tool
<A NAME="lbAC">&nbsp;</A>
<H2>SYNOPSIS</H2>

<B>xymonping [--retries=N] [--timeout=N] [IP-adresses]</B>

<P>
<A NAME="lbAD">&nbsp;</A>
<H2>DESCRIPTION</H2>

<I><A HREF="../man1/xymonping.1.html">xymonping</A>(1)</I>

is used for ping testing of the hosts monitored by the
<I><A HREF="../man7/xymon.7.html">xymon</A>(7)</I>

monitoring system. It reads a list of IP adresses from stdin,
and performs a &quot;ping&quot; check to see if these hosts are alive.
It is normally invoked by the
<I><A HREF="../man1/xymonnet.1.html">xymonnet</A>(1)</I>

utility, which performs all of the Xymon network tests.
<P>
Optionally, if a list of IP-adresses is passed as command-line
arguments, it will ping those IP's instead of reading them 
from stdin.
<P>
xymonping only handles IP-adresses, not hostnames.
<P>
xymonping was inspired by the
<I><A HREF="../man1/fping.1.html">fping</A>(1)</I>

tool, but has been written from scratch to implement a fast
ping tester without much of the overhead found in other
such utilities. The output from xymonping is similar to that 
of &quot;fping -Ae&quot;.
<P>
xymonping probes multiple systems in parallel, and the runtime
is therefore mostly dependant on the timeout-setting and the
number of retries. With the default options, xymonping takes
approximately 18 seconds to ping all hosts (tested with an
input set of 1500 IP adresses).
<P>
<A NAME="lbAE">&nbsp;</A>
<H2>SUID-ROOT INSTALLATION REQUIRED</H2>

xymonping needs to be installed with suid-root privileges,
since it requires a &quot;raw socket&quot; to send and receive ICMP
Echo (ping) packets.
<P>
xymonping is implemented such that it immediately drops
the root privileges, and only regains them to perform two
operations: Obtaining the raw socket, and optionally binding
it to a specific source address. These operations are performed
as root, the rest of the time xymonping runs with normal user
privileges. Specifically, no user-supplied data or network data
is used while running with root privileges. Therefore it 
should be safe to provide xymonping with the necessary
suid-root privileges.
<P>
<A NAME="lbAF">&nbsp;</A>
<H2>OPTIONS</H2>

<DL COMPACT>
<DT>--retries=N<DD>
Sets the number of retries for hosts that fail to respond to
the initial ping, i.e. the number of ping probes sent in addition
to the initial probe. The default is --retries=2, to ping a host 
3 times before concluding that it is not responding.
<P>
<DT>--timeout=N<DD>
Determines the timeout (in seconds) for ping probes. If a
host does not respond within N seconds, it is regarded as
unavailable, unless it responds to one of the retries.
The default is --timeout=5.
<P>
<DT>--responses=N<DD>
xymonping normally stops pinging a host after receiving a single
response, and uses that to determine the round-trip time. If the
first response takes longer to arrive - e.g. because of additional
network overhead when first determining the route to the target host -
it may skew the round-trip-time reports. You can then use this option
to require N responses, and xymonping will calculate the round-trip
time as the average of all of responsetimes.
<P>
<DT>--max-pps=N<DD>
Maximum number of packets per second. This limits the number of
ICMP packets xymonping will send per second, by enforcing a
brief delay after each packet is sent. The default setting is
to send a maximum of 50 packets per second. Note that increasing
this may cause flooding of the network, and since ICMP packets
can be discarded by routers and other network equipment, this
can cause erratic behaviour with hosts recorded as not responding
when they are in fact OK.
<P>
<DT>--source=ADDRESS<DD>
Use ADDRESS as the source IP address of the ping packets sent.
On multi-homed systems, allows you to select the source IP of
the hosts going out, which might be necessary for ping to work.
<P>
<DT>--debug<DD>
Enable debug output. This prints out all packets sent and received.
<P>
</DL>
<A NAME="lbAG">&nbsp;</A>
<H2>SEE ALSO</H2>

<A HREF="../man7/xymon.7.html">xymon</A>(7), <A HREF="../man1/xymonnet.1.html">xymonnet</A>(1), <A HREF="../man1/fping.1.html">fping</A>(1)
<P>
<P>

<HR>
<A NAME="index">&nbsp;</A><H2>Index</H2>
<DL>
<DT><A HREF="#lbAB">NAME</A><DD>
<DT><A HREF="#lbAC">SYNOPSIS</A><DD>
<DT><A HREF="#lbAD">DESCRIPTION</A><DD>
<DT><A HREF="#lbAE">SUID-ROOT INSTALLATION REQUIRED</A><DD>
<DT><A HREF="#lbAF">OPTIONS</A><DD>
<DT><A HREF="#lbAG">SEE ALSO</A><DD>
</DL>
<HR>
This document was created by
<A HREF="/cgi-bin/man/man2html">man2html</A>,
using the manual pages.<BR>
Time: 09:25:34 GMT, January 07, 2014
</BODY>
</HTML>
